package STUDENT.TranMinhVu.OOPS.ExerciseLV2.StockChange;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Stock obj = new Stock();
		System.out.println("Moi nhap ten chung khoan");
		Scanner sc = new Scanner(System.in);
		obj.setName(sc.nextLine());
		System.out.println("Moi nhap ma chung khoan");
		obj.setSymbol(sc.nextLine());
		System.out.println("Moi nhap gia mo cua");
		obj.setPreviousclosingprice(sc.nextDouble());
		System.out.println("Moi nhap gia hien tai");
		obj.setCurrentprice(sc.nextDouble());
		Controllers objcontrollers = new Controllers();
		double change = objcontrollers.exe_changepercent(obj);
		System.out.println("The percentage changed of the stock is " + change +"%");
	}
}